package cn.iocoder.devlop.module.annual.report.subcapital.convert;

import cn.iocoder.devlop.framework.common.pojo.PageResult;
import cn.iocoder.devlop.module.annual.report.subcapital.controller.vo.SubcapitalCreateReqVO;
import cn.iocoder.devlop.module.annual.report.subcapital.controller.vo.SubcapitalExcelVO;
import cn.iocoder.devlop.module.annual.report.subcapital.controller.vo.SubcapitalRespVO;
import cn.iocoder.devlop.module.annual.report.subcapital.controller.vo.SubcapitalUpdateReqVO;
import cn.iocoder.devlop.module.annual.report.subcapital.dal.dataobject.SubcapitalDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 年报股东及出资 Convert
 *
 * @author 超级管理员
 */
@Mapper
public interface SubcapitalConvert {

    SubcapitalConvert INSTANCE = Mappers.getMapper(SubcapitalConvert.class);

    SubcapitalDO convert(SubcapitalCreateReqVO bean);

    SubcapitalDO convert(SubcapitalUpdateReqVO bean);

    SubcapitalRespVO convert(SubcapitalDO bean);

    List<SubcapitalRespVO> convertList(List<SubcapitalDO> list);

    List<SubcapitalDO> convertList01(List<SubcapitalCreateReqVO> list);

    PageResult<SubcapitalRespVO> convertPage(PageResult<SubcapitalDO> page);

    List<SubcapitalExcelVO> convertList02(List<SubcapitalDO> list);

    List<SubcapitalCreateReqVO> convertList3(List<SubcapitalDO> oldSubcapitalList);
}
